package cn.ix.spring.security.config;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author huan.fu 2020-06-07 - 14:22
 */
@Configuration
@ConfigurationProperties(prefix = "jwt")
public class JwtConfig {
    private String secretKey;
    private Long tokenExpireSecond;
    private String tokenHeaderPrefix;
    private String authorizationHeaderName;
    private Long refreshTokenExpiredSecond;
    private String refreshHeaderName;
    private String userId;

    public String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

    public Long getTokenExpireSecond() {
        return tokenExpireSecond;
    }

    public void setTokenExpireSecond(Long tokenExpireSecond) {
        this.tokenExpireSecond = tokenExpireSecond;
    }

    public String getTokenHeaderPrefix() {
        return tokenHeaderPrefix;
    }

    public void setTokenHeaderPrefix(String tokenHeaderPrefix) {
        this.tokenHeaderPrefix = tokenHeaderPrefix;
    }

    public String getAuthorizationHeaderName() {
        return authorizationHeaderName;
    }

    public void setAuthorizationHeaderName(String authorizationHeaderName) {
        this.authorizationHeaderName = authorizationHeaderName;
    }

    public Long getRefreshTokenExpiredSecond() {
        return refreshTokenExpiredSecond;
    }

    public void setRefreshTokenExpiredSecond(Long refreshTokenExpiredSecond) {
        this.refreshTokenExpiredSecond = refreshTokenExpiredSecond;
    }

    public String getRefreshHeaderName() {
        return refreshHeaderName;
    }

    public void setRefreshHeaderName(String refreshHeaderName) {
        this.refreshHeaderName = refreshHeaderName;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
}
